package com.company.project.common.utils;

import com.company.project.pojo.Rest;

import java.io.Serializable;


/**
 * 参数工具
 */
public class RestUtil implements Serializable{

	private static final long serialVersionUID = -6237680450790447468L;

	/**
	 * 封装带集合的返回
	 */
	public static Rest rest(String resultCode) {
		return new Rest(resultCode);
	}
	
	/**
	 * 封装带集合的返回
	 */
	public static Rest rest(String resultCode, String resultCodeDesc) {
		return new Rest(resultCode, resultCodeDesc);
	}
	
	/**
	 * 封装带集合的返回
	 */
	public static Rest rest(String resultCode, String resultCodeDesc, Object object) {
		return new Rest(resultCode, resultCodeDesc, object);
	}

}
